import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class code1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s1 = in.next();
        String s2 = in.next();

        int[] hash = new int[26];

        for(char ch : s1.toCharArray()) {
            hash[ch-'A']++;
        }

        for(char ch : s2.toCharArray()) {
            hash[ch-'A']--;
            if(hash[ch-'A'] < 0) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");

    }
}